package org.edu.modules.pub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@TableName("ve_file_files")
@ApiModel(value = "ve_file_files对象", description = "ve_file_files")
public class VeFileFiles implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("文件ID")
    private Integer id;
    @ApiModelProperty("原始文件名")
    private String name;
    @ApiModelProperty("源文件")
    private String sourcefile;
    @ApiModelProperty("中间文件")
    private String tempfile;
    @ApiModelProperty("浏览文件")
    private String destfile;
    @ApiModelProperty("预览文件")
    private String prefile;
    @ApiModelProperty("html格式文件")
    private String htmlfile;
    @ApiModelProperty("封面文件")
    private String coverfile;
    @ApiModelProperty("文件后缀")
    private String ext;

    public org.edu.modules.pub.entity.VeFileFiles setId(Integer id) {
        this.id = id;
        return this;
    }

    @ApiModelProperty("状态：-1=不需要转换，0=待转换，1=转换成功，2=转换失败,3=正在转换，9=临时文件")
    private Integer status;
    @ApiModelProperty("文件mime类型")
    private String mime;
    @ApiModelProperty("文件大小")
    private long size;
    @ApiModelProperty("视频长度/文档页码")
    private Integer length;
    @ApiModelProperty("文件md5")
    private String md5;
    @ApiModelProperty("文件 sha1编码")
    private String sha1;
    @ApiModelProperty("上传时间")
    private long createtime;
    @ApiModelProperty("失败代码")
    private String error;
    @ApiModelProperty("上传用户ID")
    private Integer createuser;
    @ApiModelProperty("photo")
    private String photo;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.pub.entity.VeFileFiles setName(String name) {
        this.name = name;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setSourcefile(String sourcefile) {
        this.sourcefile = sourcefile;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setTempfile(String tempfile) {
        this.tempfile = tempfile;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setDestfile(String destfile) {
        this.destfile = destfile;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setPrefile(String prefile) {
        this.prefile = prefile;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setHtmlfile(String htmlfile) {
        this.htmlfile = htmlfile;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setCoverfile(String coverfile) {
        this.coverfile = coverfile;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setExt(String ext) {
        this.ext = ext;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setMime(String mime) {
        this.mime = mime;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setSize(long size) {
        this.size = size;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setLength(Integer length) {
        this.length = length;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setMd5(String md5) {
        this.md5 = md5;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setSha1(String sha1) {
        this.sha1 = sha1;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setCreatetime(long createtime) {
        this.createtime = createtime;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setError(String error) {
        this.error = error;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setCreateuser(Integer createuser) {
        this.createuser = createuser;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setPhoto(String photo) {
        this.photo = photo;
        return this;
    }

    public org.edu.modules.pub.entity.VeFileFiles setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeFileFiles(id=" + getId() + ", name=" + getName() + ", sourcefile=" + getSourcefile() + ", tempfile=" + getTempfile() + ", destfile=" + getDestfile() + ", prefile=" + getPrefile() + ", htmlfile=" + getHtmlfile() + ", coverfile=" + getCoverfile() + ", ext=" + getExt() + ", status=" + getStatus() + ", mime=" + getMime() + ", size=" + getSize() + ", length=" + getLength() + ", md5=" + getMd5() + ", sha1=" + getSha1() + ", createtime=" + getCreatetime() + ", error=" + getError() + ", createuser=" + getCreateuser() + ", photo=" + getPhoto() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.pub.entity.VeFileFiles)) return false;
        org.edu.modules.pub.entity.VeFileFiles other = (org.edu.modules.pub.entity.VeFileFiles) o;
        if (!other.canEqual(this)) return false;
        if (getSize() != other.getSize()) return false;
        if (getCreatetime() != other.getCreatetime()) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$status = getStatus(), other$status = other.getStatus();
        if ((this$status == null) ? (other$status != null) : !this$status.equals(other$status)) return false;
        Object this$length = getLength(), other$length = other.getLength();
        if ((this$length == null) ? (other$length != null) : !this$length.equals(other$length)) return false;
        Object this$createuser = getCreateuser(), other$createuser = other.getCreateuser();
        if ((this$createuser == null) ? (other$createuser != null) : !this$createuser.equals(other$createuser))
            return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        if ((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId)) return false;
        Object this$name = getName(), other$name = other.getName();
        if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name)) return false;
        Object this$sourcefile = getSourcefile(), other$sourcefile = other.getSourcefile();
        if ((this$sourcefile == null) ? (other$sourcefile != null) : !this$sourcefile.equals(other$sourcefile))
            return false;
        Object this$tempfile = getTempfile(), other$tempfile = other.getTempfile();
        if ((this$tempfile == null) ? (other$tempfile != null) : !this$tempfile.equals(other$tempfile)) return false;
        Object this$destfile = getDestfile(), other$destfile = other.getDestfile();
        if ((this$destfile == null) ? (other$destfile != null) : !this$destfile.equals(other$destfile)) return false;
        Object this$prefile = getPrefile(), other$prefile = other.getPrefile();
        if ((this$prefile == null) ? (other$prefile != null) : !this$prefile.equals(other$prefile)) return false;
        Object this$htmlfile = getHtmlfile(), other$htmlfile = other.getHtmlfile();
        if ((this$htmlfile == null) ? (other$htmlfile != null) : !this$htmlfile.equals(other$htmlfile)) return false;
        Object this$coverfile = getCoverfile(), other$coverfile = other.getCoverfile();
        if ((this$coverfile == null) ? (other$coverfile != null) : !this$coverfile.equals(other$coverfile))
            return false;
        Object this$ext = getExt(), other$ext = other.getExt();
        if ((this$ext == null) ? (other$ext != null) : !this$ext.equals(other$ext)) return false;
        Object this$mime = getMime(), other$mime = other.getMime();
        if ((this$mime == null) ? (other$mime != null) : !this$mime.equals(other$mime)) return false;
        Object this$md5 = getMd5(), other$md5 = other.getMd5();
        if ((this$md5 == null) ? (other$md5 != null) : !this$md5.equals(other$md5)) return false;
        Object this$sha1 = getSha1(), other$sha1 = other.getSha1();
        if ((this$sha1 == null) ? (other$sha1 != null) : !this$sha1.equals(other$sha1)) return false;
        Object this$error = getError(), other$error = other.getError();
        if ((this$error == null) ? (other$error != null) : !this$error.equals(other$error)) return false;
        Object this$photo = getPhoto(), other$photo = other.getPhoto();
        return !((this$photo == null) ? (other$photo != null) : !this$photo.equals(other$photo));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.pub.entity.VeFileFiles;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        long $size = getSize();
        result = result * 59 + (int) ($size >>> 32L ^ $size);
        long $createtime = getCreatetime();
        result = result * 59 + (int) ($createtime >>> 32L ^ $createtime);
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $status = getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        Object $length = getLength();
        result = result * 59 + (($length == null) ? 43 : $length.hashCode());
        Object $createuser = getCreateuser();
        result = result * 59 + (($createuser == null) ? 43 : $createuser.hashCode());
        Object $placeId = getPlaceId();
        result = result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
        Object $name = getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        Object $sourcefile = getSourcefile();
        result = result * 59 + (($sourcefile == null) ? 43 : $sourcefile.hashCode());
        Object $tempfile = getTempfile();
        result = result * 59 + (($tempfile == null) ? 43 : $tempfile.hashCode());
        Object $destfile = getDestfile();
        result = result * 59 + (($destfile == null) ? 43 : $destfile.hashCode());
        Object $prefile = getPrefile();
        result = result * 59 + (($prefile == null) ? 43 : $prefile.hashCode());
        Object $htmlfile = getHtmlfile();
        result = result * 59 + (($htmlfile == null) ? 43 : $htmlfile.hashCode());
        Object $coverfile = getCoverfile();
        result = result * 59 + (($coverfile == null) ? 43 : $coverfile.hashCode());
        Object $ext = getExt();
        result = result * 59 + (($ext == null) ? 43 : $ext.hashCode());
        Object $mime = getMime();
        result = result * 59 + (($mime == null) ? 43 : $mime.hashCode());
        Object $md5 = getMd5();
        result = result * 59 + (($md5 == null) ? 43 : $md5.hashCode());
        Object $sha1 = getSha1();
        result = result * 59 + (($sha1 == null) ? 43 : $sha1.hashCode());
        Object $error = getError();
        result = result * 59 + (($error == null) ? 43 : $error.hashCode());
        Object $photo = getPhoto();
        return result * 59 + (($photo == null) ? 43 : $photo.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public String getName() {
        /* 40 */
        return this.name;
    }

    public String getSourcefile() {
        /* 43 */
        return this.sourcefile;
    }

    public String getTempfile() {
        /* 46 */
        return this.tempfile;
    }

    public String getDestfile() {
        return this.destfile;
    }

    public String getPrefile() {
        /* 52 */
        return this.prefile;
    }

    public String getHtmlfile() {
        /* 55 */
        return this.htmlfile;
    }

    public String getCoverfile() {
        /* 58 */
        return this.coverfile;
    }

    public String getExt() {
        return this.ext;
    }

    public Integer getStatus() {
        /* 64 */
        return this.status;
    }

    public String getMime() {
        /* 67 */
        return this.mime;
    }

    public long getSize() {
        /* 70 */
        return this.size;
    }

    public Integer getLength() {
        return this.length;
    }

    public String getMd5() {
        /* 76 */
        return this.md5;
    }

    public String getSha1() {
        /* 79 */
        return this.sha1;
    }

    public long getCreatetime() {
        /* 82 */
        return this.createtime;
    }

    public String getError() {
        return this.error;
    }

    public Integer getCreateuser() {
        /* 88 */
        return this.createuser;
    }

    public String getPhoto() {
        /* 91 */
        return this.photo;
    }

    public Integer getPlaceId() {
        /* 94 */
        return this.placeId;
    }
}



